/* iot-platform/assets/css/header.css */

.page-header {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky; /* 固定在顶部 */
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo .logo-icon {
    width: 32px;
    height: 32px;
    background-color: #ccc;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2d3d;
}

.header-nav {
    display: flex;
    margin-left: 50px;
}

.nav-item {
    padding: 0 20px;
    line-height: 62px; /* 略小于头部高度，为下边框留空间 */
    cursor: pointer;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-item:hover {
    color: #1890ff;
}

.nav-item.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
    font-weight: 600;
}

.header-right {
    margin-left: auto; /* 关键：将右侧内容推到最右边 */
}

.admin-profile {
    cursor: pointer;
}